package com.xuetang9.t9.hotel.services;

import com.xuetang9.t9.hotel.beans.OrderFood;
import org.apache.ibatis.annotations.*;

/**
 * @author pang
 */
public interface IOrderFoodService {
    /**
     * 新增
     * @param orderFood
     * @return
     */
    int insert(OrderFood orderFood);


    /**
     * 更新数量
     * @param orderFood
     * @return
     */
    int update(OrderFood orderFood);


    /**
     * 根据事物id和就餐id查询数量
     * @param id
     * @param footId
     * @return
     */
    int selectByIdAndFoodId(@Param("id") Integer id, @Param("footId") Integer footId);

    /**
     * 根据就餐和事物id删除
     * @param id
     * @return
     */
    int delete(@Param("id") Integer id,@Param("footId") Integer footId);
}
